package stu.aistar;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

//@ImportResource(locations = "classpath:spring-bean.xml")
@ServletComponentScan(basePackages = "stu.aistar.listener.*") //能够识别Servlet注解
//将该包下的所有的mapper接口的代理实现类的创建交给spring完成.
@MapperScan(basePackages = "stu.aistar.mapper")
@SpringBootApplication
public class MoviesApplication {

    public static void main(String[] args) {
        SpringApplication.run(MoviesApplication.class, args);
    }

}
